<template>
      <div>

         <h3>本地存放数据</h3>
         <Children3></Children3>
         <Children4></Children4>

         <!-- 
            我在兄弟3中有一个数据   1000 =》兄弟4

            (1)创建一个仓库=》 new Vue()=>Vue

          -->

      </div>
</template>

<script>
import Children3 from './components/Children3.vue'
import Children4 from './components/Children4.vue'
export default {
    data(){
        return{
            list:[]
        }
    },
    created(){
     //发送网络请求获取到数据
        this.list = [1,2,3]
        // 本地存放数据=>存放的数据  字符串
        let str = JSON.stringify(this.list)
         sessionStorage.setItem('list',str )
    },
  components:{
    Children3,
     Children4
  }
}
</script>

<style>

</style>